package com.CMS.server.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

@Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = EntityTokens.LANGUAGE_TABLE)
public class Language extends BaseEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Column(name = EntityTokens.LANGUAGE_VALUE_COLUMN, nullable = false, unique = true)
	protected String value;
	
	@Column(name = EntityTokens.LANGUAGE_ACTIVE_COLUMN, nullable = false)
	protected boolean active;
	
	public Language(){
		super();
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public boolean isActive() {
		return active;
	}

	public void setActive(boolean active) {
		this.active = active;
	}
}
